package org.visitor.visitorserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Professor {
    @NotNull(message = "专家id不能为空")
    private String id;
    @NotNull(message = "专家领域不能为空")
    private String area;
    @NotNull(message = "专家姓名不能为空")
    private String name;
    @NotNull(message = "专家部门不能为空")
    private String branchName;
    @NotNull(message = "专家电话不能为空")
    private String tel;
    @NotNull(message = "专家咨询价格不能为空")
    private double price; // 专家预约金额
    @NotNull(message = "专家被预约次数不能为空")
    private Integer appointmentNumber; // 专家被预约次数
    @NotNull(message = "专家来源不能为空")
    private Integer source; // 专家的来源：1.手动添加 2.批量导入
    @NotNull(message = "专家好评率不能为空")
    private double rate; // 专家好评率
    @NotNull(message = "专家是否启用不能为空")
    private String isCheck;
    @NotNull(message = "专家职务不能为空")
    private String zw;
    @NotNull(message = "专家状态不能为空")
    private String status;
    @TableLogic
    @NotNull(message = "专家删除状态不能为空")
    private Integer isDel;
    @NotNull(message = "专家创建日期不能为空")
    private Date createAt;
    @NotNull(message = "专家更新日期不能为空")
    private Date updateAt;
    private int sort;
}
